package com.sz.sidi.oa.ui.enitor;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.EditorPart;
import org.eclipse.wb.swt.ResourceManager;
import org.eclipse.wb.swt.SWTResourceManager;

import com.sz.sidi.oa.katable.ShowKTable;

import de.kupzog.ktable.SWTX;
import org.eclipse.swt.widgets.Label;

import util.DataSource;

public class WelcomeEditor extends EditorPart {

	public static final String ID = "enitor.WelcomeEditor"; //$NON-NLS-1$

	public ShowKTable showKTable1;
	public ShowKTable showKTable2;
	public ShowKTable showKTable3;
	public ShowKTable showKTable4;
	public ShowKTable showKTable5;
	public ShowKTable showKTable6;
	public ShowKTable showKTable7;
	public ShowKTable showKTable8;
	
	public final static int L = SWTX.ALIGN_HORIZONTAL_LEFT;
	public WelcomeEditor() {
		setTitleImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/chart_flipped_16.png"));
	}

	/**
	 * Create contents of the editor part.
	 * @param parent
	 */
	@Override
	public void createPartControl(Composite parent) {
		ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
		scrolledComposite.setShowFocusedControl(true);
		scrolledComposite.setExpandHorizontal(true);
		scrolledComposite.setExpandVertical(true);
		
		Composite container = new Composite(scrolledComposite, SWT.BORDER);
		container.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
		scrolledComposite.setContent(container);
		
		
		GridLayout gl_container = new GridLayout(2, true);
		gl_container.marginWidth = 2;
		gl_container.marginTop = 3;
		gl_container.marginHeight = 1;
		gl_container.marginBottom = 1;
		gl_container.verticalSpacing = 2;
		gl_container.marginRight = 1;
		gl_container.marginLeft = 1;
		gl_container.horizontalSpacing = 1;
		container.setLayout(gl_container);

		FormToolkit toolKit = new FormToolkit(container.getDisplay());  
		toolKit.setBackground(SWTResourceManager.getColor(255, 255, 255));
		toolKit.setOrientation(SWT.LEFT_TO_RIGHT);
		toolKit.setBorderStyle(SWT.BORDER);
		Section section = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		section.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		section.setText("通知/公告");
		Composite sectionPanel = toolKit.createComposite(section);  
		FillLayout fl_sectionPanel = new FillLayout();
		sectionPanel.setLayout(fl_sectionPanel);  
		//让面板在section上填充显示  
		toolKit.createCompositeSeparator(section);
		section.setClient(sectionPanel );  
		GridData gd_section = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
		gd_section.minimumHeight = 10;
		section.setLayoutData(gd_section);
		
		ToolBar bar = new ToolBar(section, SWT.FLAT | SWT.RIGHT);  
		section.setTextClient(bar);  
		ToolItem tltmA_1 = new ToolItem(bar, SWT.NONE);
		tltmA_1.setToolTipText("更多");
		tltmA_1.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item= new ToolItem(bar, SWT.NONE);
		item.setToolTipText("刷新");
		item.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		
		Section sctnNewSection = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		sctnNewSection.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		sctnNewSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1));
		toolKit.paintBordersFor(sctnNewSection);
		toolKit.createCompositeSeparator(sctnNewSection);  
		Composite sectionPane2 = toolKit.createComposite(sctnNewSection);  
		sectionPane2.setLayout(new FillLayout());  
		sctnNewSection.setClient(sectionPane2 );  
		sctnNewSection.setText("公司新闻");
		ToolBar bar2 = new ToolBar(sctnNewSection, SWT.FLAT | SWT.RIGHT);  
		sctnNewSection.setTextClient(bar2);  
		
		ToolItem tltmA = new ToolItem(bar2, SWT.NONE);
		tltmA.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item2= new ToolItem(bar2, SWT.PUSH); 
		item2.setToolTipText("刷新");
		item2.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Composite composite1 = toolKit.createComposite(container, SWT.NONE);
		composite1.setLayout(new GridLayout(1, false));
		GridData gd_composite1 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
		gd_composite1.heightHint = 195;
		composite1.setLayoutData(gd_composite1);
		composite1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite1);
		
		showKTable1 = new ShowKTable(composite1, SWT.NONE);
		showKTable1.setPreferredSizeDefaultRowHeight(15);
		showKTable1.setNumRowsVisibleInPreferredSize(8);
		showKTable1.setColorTopBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_FOREGROUND));
		showKTable1.setColorRightBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_FOREGROUND));
		showKTable1.setColorLeftBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_DARK_SHADOW));
		showKTable1.setDefaultColumnResizeCursor(SWTResourceManager.getCursor(SWT.CURSOR_HELP));
		showKTable1.setDefaultRowResizeCursor(SWTResourceManager.getCursor(SWT.CURSOR_SIZEW));
		showKTable1.setStyle(1);
		showKTable1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable1.setToolTipText("通知/公告");
		showKTable1.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable1.setColumnAligns(new int[] { L,L,L });
		showKTable1.setColumnWidths(new int[] { 40, 270,150 });
		showKTable1.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		GridLayout gl_showKTable1 = new GridLayout(1, false);
		gl_showKTable1.marginBottom = 1;
		showKTable1.setLayout(gl_showKTable1);
		
		Composite composite2 = toolKit.createComposite(container, SWT.NONE);
		composite2.setLayout(new GridLayout(1, false));
		GridData gd_composite2 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
		gd_composite2.heightHint = 195;
		composite2.setLayoutData(gd_composite2);
		composite2.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite2);
		showKTable2 = new ShowKTable(composite2, SWT.NONE);
		showKTable2.setColorTopBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_FOREGROUND));
		showKTable2.setColorRightBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_FOREGROUND));
		showKTable2.setColorLeftBorder(SWTResourceManager.getColor(SWT.COLOR_WIDGET_DARK_SHADOW));
		showKTable2.setDefaultColumnResizeCursor(SWTResourceManager.getCursor(SWT.CURSOR_HELP));
		showKTable2.setDefaultRowResizeCursor(SWTResourceManager.getCursor(SWT.CURSOR_SIZEW));
		showKTable2.setStyle(1);
		showKTable2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable2.setToolTipText("通知/公告");
		showKTable2.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable2.setColumnAligns(new int[] { L,L,L });
		showKTable2.setColumnWidths(new int[] { 40, 270,150 });
		showKTable2.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable2.setLayout(new GridLayout(1, false));
		showKTable2.setStyle(1);
		
		Section sctnNewSection_1 = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		sctnNewSection_1.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		sctnNewSection_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		toolKit.paintBordersFor(sctnNewSection_1);
		sctnNewSection_1.setText("收件箱");
		toolKit.createCompositeSeparator(sctnNewSection_1);  
		Composite sectionPane3 = toolKit.createComposite(sctnNewSection_1);  
		sectionPane3.setLayout(new FillLayout());  
		sctnNewSection_1.setClient(sectionPane3);  
		ToolBar bar3 = new ToolBar(sctnNewSection_1, SWT.FLAT | SWT.RIGHT);  
		sctnNewSection_1.setTextClient(bar3);  
		
		ToolItem tltmNewItem = new ToolItem(bar3, SWT.NONE);
		tltmNewItem.setToolTipText("更多");
		tltmNewItem.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item3= new ToolItem(bar3, SWT.PUSH);  
		item3.setToolTipText("刷新");
		item3.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		
		Section sctnNewSection_2 = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		sctnNewSection_2.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		sctnNewSection_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		sctnNewSection_2.setToolTipText("");
		toolKit.paintBordersFor(sctnNewSection_2);
		sctnNewSection_2.setText("我的任务");
		toolKit.createCompositeSeparator(sctnNewSection_2);  
		Composite sectionPane4 = toolKit.createComposite(sctnNewSection_2);  
		sectionPane4.setLayout(new FillLayout());  
		sctnNewSection_2.setClient(sectionPane4);  
		ToolBar bar4 = new ToolBar(sctnNewSection_2, SWT.FLAT | SWT.RIGHT);  
		sctnNewSection_2.setTextClient(bar4);  
		
		ToolItem tltmNewItem_1 = new ToolItem(bar4, SWT.NONE);
		tltmNewItem_1.setToolTipText("更多");
		tltmNewItem_1.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item4= new ToolItem(bar4, SWT.PUSH);  
		item4.setToolTipText("刷新");
		item4.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Composite composite3 = toolKit.createComposite(container, SWT.NONE);
		composite3.setLayout(new GridLayout(1, false));
		GridData gd_composite3 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
		gd_composite3.heightHint = 195;
		composite3.setLayoutData(gd_composite3);
		composite3.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite3);
		showKTable3 = new ShowKTable(composite3, SWT.NONE);
		showKTable3.setStyle(1);
		showKTable3.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable3.setToolTipText("通知/公告");
		showKTable3.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable3.setColumnAligns(new int[] { L,L,L });
		showKTable3.setColumnWidths(new int[] { 40, 270,150 });
		showKTable3.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable3.setLayout(new GridLayout(1, false));
		
		
		Composite composite4 = toolKit.createComposite(container, SWT.NONE);
		composite4.setLayout(new GridLayout(1, false));
		GridData gd_composite4 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
		gd_composite4.heightHint = 195;
		composite4.setLayoutData(gd_composite4);
		composite4.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite4);
		showKTable4 = new ShowKTable(composite4, SWT.NONE);
		showKTable4.setStyle(1);
		showKTable4.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable4.setToolTipText("通知/公告");
		showKTable4.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable4.setColumnAligns(new int[] { L,L,L });
		showKTable4.setColumnWidths(new int[] { 40, 270,150 });
		showKTable4.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable4.setLayout(new GridLayout(1, false));
		
		
		Section section_1 = toolKit.createSection(container, Section.TWISTIE | Section.TITLE_BAR);
		section_1.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		section_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		toolKit.paintBordersFor(section_1);
		section_1.setText("人事公告");
		toolKit.createCompositeSeparator(section_1);  
		Composite sectionPane5 = toolKit.createComposite(section_1);  
		sectionPane5.setLayout(new FillLayout());  
		section_1.setClient(sectionPane5);  
		ToolBar bar5 = new ToolBar(section_1, SWT.FLAT | SWT.RIGHT);  
		section_1.setTextClient(bar5);  
		
		ToolItem tltmNewItem_2 = new ToolItem(bar5, SWT.NONE);
		tltmNewItem_2.setToolTipText("更多");
		tltmNewItem_2.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item5= new ToolItem(bar5, SWT.PUSH);  
		item5.setToolTipText("刷新");
		item5.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Section section_2 = toolKit.createSection(container, Section.TWISTIE | Section.TITLE_BAR);
		section_2.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		section_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		toolKit.paintBordersFor(section_2);
		section_2.setText("人事生日");
		toolKit.createCompositeSeparator(section_2);  
		Composite sectionPane6 = toolKit.createComposite(section_2);  
		sectionPane6.setLayout(new FillLayout());  
		section_2.setClient(sectionPane6);  
		ToolBar bar6 = new ToolBar(section_2, SWT.FLAT | SWT.RIGHT);  
		section_2.setTextClient(bar6);  
		ToolItem item6= new ToolItem(bar6, SWT.PUSH); 
		item6.setToolTipText("更多");
		item6.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		
		ToolItem tltmNewItem_3 = new ToolItem(bar6, SWT.NONE);
		tltmNewItem_3.setToolTipText("刷新");
		tltmNewItem_3.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Composite composite5 = toolKit.createComposite(container, SWT.NONE);
		composite5.setLayout(new GridLayout(1, false));
		GridData gd_composite5 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
		gd_composite5.heightHint = 195;
		composite5.setLayoutData(gd_composite5);
		composite5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite5);
		showKTable5 = new ShowKTable(composite5, SWT.NONE);
		showKTable5.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable5.setToolTipText("通知/公告");
		showKTable5.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable5.setColumnAligns(new int[] { L,L,L });
		showKTable5.setColumnWidths(new int[] { 40, 270,150 });
		showKTable5.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable5.setLayout(new GridLayout(1, false));
		
		Composite composite6 = toolKit.createComposite(container, SWT.NONE);
		composite6.setLayout(new GridLayout(1, false));
		GridData gd_composite6 = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);
		gd_composite6.heightHint = 195;
		composite6.setLayoutData(gd_composite6);
		composite6.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite6);
		showKTable6 = new ShowKTable(composite6, SWT.NONE);
		showKTable6.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable6.setToolTipText("通知/公告");
		showKTable6.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable6.setColumnAligns(new int[] { L,L,L });
		showKTable6.setColumnWidths(new int[] { 40, 270,150 });
		showKTable6.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable6.setLayout(new GridLayout(1, false));
		
		Section sctnNewSection_3 = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		sctnNewSection_3.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		sctnNewSection_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		toolKit.paintBordersFor(sctnNewSection_3);
		sctnNewSection_3.setText("客户统计跟踪");
		toolKit.createCompositeSeparator(sctnNewSection_3);  
		Composite sectionPane7 = toolKit.createComposite(sctnNewSection_3);  
		sectionPane7.setLayout(new FillLayout());  
		sctnNewSection_3.setClient(sectionPane7);  
		ToolBar bar7 = new ToolBar(sctnNewSection_3, SWT.FLAT);  
		sctnNewSection_3.setTextClient(bar7);  
		
		ToolItem tltmNewItem_4 = new ToolItem(bar7, SWT.NONE);
		tltmNewItem_4.setToolTipText("更多");
		tltmNewItem_4.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		ToolItem item7= new ToolItem(bar7, SWT.PUSH); 
		item7.setToolTipText("刷新");
		item7.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Section sctnNewSection_4 = toolKit.createSection(container, Section.FOCUS_TITLE | Section.TWISTIE | Section.TITLE_BAR);
		sctnNewSection_4.setFont(SWTResourceManager.getFont("宋体", 10, SWT.BOLD));
		sctnNewSection_4.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
		toolKit.paintBordersFor(sctnNewSection_4);
		sctnNewSection_4.setText("工作日记看板");
		toolKit.createCompositeSeparator(sctnNewSection_4);  
		Composite sectionPane8 = toolKit.createComposite(sctnNewSection_4);  
		sectionPane8.setLayout(new FillLayout());  
		sctnNewSection_4.setClient(sectionPane8);  
		ToolBar bar8 = new ToolBar(sctnNewSection_4, SWT.FLAT | SWT.RIGHT);  
		sctnNewSection_4.setTextClient(bar8);  
		ToolItem item8= new ToolItem(bar8, SWT.PUSH); 
		item8.setToolTipText("更多");
		item8.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/search_button_16.png"));
		
		ToolItem tltmNewItem_5 = new ToolItem(bar8, SWT.NONE);
		tltmNewItem_5.setToolTipText("刷新");
		tltmNewItem_5.setImage(ResourceManager.getPluginImage("com.sz.sidi.oa", "icons/refresh.gif"));
		
		Composite composite7 = toolKit.createComposite(container, SWT.NONE);
		composite7.setLayout(new GridLayout(1, false));
		GridData gd_composite7 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
		gd_composite7.heightHint = 195;
		composite7.setLayoutData(gd_composite7);
		composite7.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite7);
		showKTable7 = new ShowKTable(composite7, SWT.NONE);
		showKTable7.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable7.setToolTipText("通知/公告");
		showKTable7.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable7.setColumnAligns(new int[] { L,L,L });
		showKTable7.setColumnWidths(new int[] { 40, 270,150 });
		showKTable7.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable7.setLayout(new GridLayout(1, false));
		
		Composite composite8 = toolKit.createComposite(container, SWT.NONE);
		composite8.setLayout(new GridLayout(1, false));
		GridData gd_composite8 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
		gd_composite8.heightHint = 195;
		composite8.setLayoutData(gd_composite8);
		composite8.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolKit.paintBordersFor(composite8);
		showKTable8 = new ShowKTable(composite8, SWT.NONE);
		showKTable8.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		showKTable8.setToolTipText("通知/公告");
		showKTable8.setTitlesAndProperties(new String[] { "序号","内容", "日期" },
				new String[] { "fcode", "fmc","fxh" });
		showKTable8.setColumnAligns(new int[] { L,L,L });
		showKTable8.setColumnWidths(new int[] { 40, 270,150 });
		showKTable8.setBackground(Display.getCurrent().getSystemColor(
				SWT.COLOR_LIST_BACKGROUND));
		showKTable8.setLayout(new GridLayout(1, false));
		new Label(container, SWT.NONE);
		new Label(container, SWT.NONE);
		new Label(container, SWT.NONE);
		new Label(container, SWT.NONE);
		new Label(container, SWT.NONE);
		new Label(container, SWT.NONE);
		scrolledComposite.setMinSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
	}

	@Override
	public void setFocus() {
		// Set the focus
	}

	@Override
	public void doSave(IProgressMonitor monitor) {
		// Do the Save operation
	}

	@Override
	public void doSaveAs() {
		// Do the Save As operation
	}

	@Override
	public void init(IEditorSite site, IEditorInput input)
			throws PartInitException {
        this.setInput(new EditorInput(ID));
        this.setSite(site);
	}

	@Override
	public boolean isDirty() {
		return false;
	}

	@Override
	public boolean isSaveAsAllowed() {
		return false;
	}
}
